package com.fulihui.wgj.consumer.job;


import com.fulihui.wgj.consumer.common.var.GameLabelVar;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author: LiuJie
 * @version: 2018/5/18 13:42
 * @description:
 */
@Component
@Slf4j
public class GameLabelJob {

    @Autowired
    GameLabelVar gameLabelVar;

    @Scheduled(cron = "${job.refreshGameDic}")
    public void refreshGameDic(){
        gameLabelVar.refreshGameType();
    }
}
